package com.way;

import lombok.Data;

/**
 * @author 魏彪
 */
@Data
public class Originator {

    private String state;

    public void restoreMemento(IMemento memento) {
        this.state = ((Memento) memento).getState();
    }
}
